package com.fh.modules.oms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fh.common.query.QueryRuleEnum;
import com.fh.common.query.annotation.QueryWrapperRule;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 订单退货
 * @author： code generator
 * @date：   2019-10-18
 * @version： V1.0
 */
@Data
@TableName("oms_order_return")
public class OmsOrderReturn implements Serializable {
    private static final long serialVersionUID = 1L;
	/**id*/
	@TableId(type = IdType.AUTO)
	private Integer id;
	/**退货单编号*/
	private String returnSn;
	/**会员用户名*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private Integer memberId;
	/**订单id*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private Integer orderId;
	/**品种数量*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private Integer productTypeCount;
	/**申请退款总金额*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private java.math.BigDecimal applyPrice;
	/**实际退款总金额*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private java.math.BigDecimal returnPrice;
	/**原因*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String reason;
	/**描述*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String description;
	/**收货时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date receiveTime;
	/**收货人*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String receiver;
	/**收货地址*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String receiverAddress;
	/**收货人电话号码*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String receiverPhone;
	/**收货备注*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String receiveNote;

	/**申请状态：0->待处理；1->退货中；2->已完成；3->已拒绝*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private Integer status;
	/**申请时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	/**处理人员*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String handleMan;
	/**处理备注*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String handleNote;
	/**处理时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date handleTime;
}
